package cn.tedu.charging.order.feign;


import cn.tedu.charging.common.pojo.param.GunStatusUpdateParam;
import cn.tedu.charging.common.protocol.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 底层所有实现都会从服务名称charging-device中调用
 */
@FeignClient("charging-service-device")
public interface DeviceClient {
    @PostMapping("/device/gun/status/update")
    public JsonResult<Boolean> updateGunStatus(@RequestBody GunStatusUpdateParam param);
}
